package com.vhall.component.entity.goods;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author guoxin.wang
 * @date 2021/10/21 17:58
 */
@Data
@TableName("live_goods_stats")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "LiveGoodsStatsEntity对象", description = "直播商品-次数统计表")
public class LiveGoodsStatsEntity implements Serializable {

    private static final long serialVersionUID = 2271737104200897002L;

    @TableId(value = "id", type = IdType.AUTO)
    @JsonProperty("id")
    private Integer id;

    @ApiModelProperty(value = "商品id")
    @TableField(value = "bg_id")
    @JsonProperty("bg_id")
    private Integer bgId;

    @ApiModelProperty(value = "直播ID")
    @TableField(value = "il_id")
    @JsonProperty("il_id")
    private Integer ilId;

    @ApiModelProperty(value = "点击次数")
    @TableField(value = "pv_num")
    @JsonProperty("pv_num")
    private Integer pvNum;

    @ApiModelProperty(value = "点击人数")
    @TableField(value = "uv_num")
    @JsonProperty("uv_num")
    private Integer uvNum;

    @ApiModelProperty(value = "推屏总次数")
    @TableField(value = "push_screen_num")
    @JsonProperty("push_screen_num")
    private Integer pushScreenNum;

    @ApiModelProperty(value = "推屏总时长/秒")
    @TableField(value = "duration")
    @JsonProperty("duration")
    private Integer duration;

    @ApiModelProperty(value = "创建日期")
    @JsonProperty("create_date")
    @TableField("create_date")
    private String createDate;

    @ApiModelProperty(value = "创建时间")
    @JsonProperty("created_at")
    @TableField("created_at")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "更新时间")
    @JsonProperty("updated_at")
    @TableField("updated_at")
    private LocalDateTime updatedAt;

    @ApiModelProperty(value = "删除时间")
    @JsonProperty("deleted_at")
    @TableField("deleted_at")
    private LocalDateTime deletedAt;

}
